<%@ page import="java.io.IOException" %>
<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: maTengLong
  Date: 2019/12/30
  Time: 13:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>三角</title>
</head>
<body>
<%
    printsanjiao(5,out);
%>

<%--最上面导入date包--%>
<%=new Date()%>
</body>
</html>
<%!
    private void printsanjiao(int i,JspWriter out) throws IOException {
            for(int k=0;k<i;k++){
                for(int m=0;m<k;m++){
                    out.print("*");
                }
                out.print("<br/>");
            }
    }
%>